<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title></title>
</head>
<body>
    <!--文章区域-->
    <div>
      <h1>${title}</h1>
      <p>${content}</p>
      <p>发表时间：<span>${publishTime}</span>  作者:<span>${username}</span>
          <a href="comment_addPrepare?articleId=${id}">评论</a></p>
        <s:set value="id" name="articleId"></s:set>

    </div>
    <!--评论区-->
    <p>=====================================================</p>
    <div>
      <s:iterator value="#comments">
        <div>
          <p>
            <span>${username}</span>
            <span>${commentTime}</span>
          </p>
          <p>
            ${content}
          </p>
          <p>
            <a href="comment_addPrepare?articleId=${requestScope.articleId}&parentId=${id}&topId=${top==null?id:top.id}">回复</a>
          </p>
        </div>
          <p>++++++++++++++++++++++++++++++++++++++++++++++++++</p>
      </s:iterator>
    </div>
</body>
</html>
